﻿<?php

$shirts = array();
$query = ShirtQuery::create()->find();

// Display 10 shirts
foreach($query as $s)
{
	array_push($shirts, array("id" => $s->getId(), "title" => $s->getNom(), "price" => $s->getPrix(), "brand" => $s->getMarque(), "description" => $s->getDescription(), "material" => "Coton"));
	if($s->getId() >= 10)
		break;
}
$smarty->assign("shirts", $shirts);
$smarty->display('home.tpl');
